<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>topics</title>
</head>
<body>
    {% extends 'learning_logsss/base.html' %}
    {% block header %}
        <h1>所有主题：</h1>
    {% endblock header %}

    {% block content %}
        <ul>
            {% for topic in topics %}
              <li>
                <h3>
                    <a href="{% url 'learning_logsss:topic' topic.id %}">{{ topic }}</a>
                </h3>
              </li>
            {% empty %}
                <li>未曾添加主题</li>
            {% endfor %}
        </ul>
        <h3><a href="{% url 'learning_logsss:new_topic' %}">添加新主题</a></h3>
    {% endblock content %}
</body>
</html>